Skip to content

Add floating animation example (#515)#888

Merged
SAPTARSHI-coder merged 5 commits into
SAPTARSHI-coder:mainfrom
SAMJOD07-devz:main
Jun 3, 2026
Merged

Add floating animation example (#515)#888
SAPTARSHI-coder merged 5 commits into
SAPTARSHI-coder:mainfrom
SAMJOD07-devz:main

Conversation

@SAMJOD07-devz
Copy link
Copy Markdown
Contributor

Pull Request Description

Adds a floating animation example submission for Issue #515.

The animation creates a smooth vertical floating effect with dynamic shadow depth changes to improve the perception of elevation and motion. The demo also includes hover interaction and reduced-motion accessibility support.


Type of Change

  • ✨ New animation / hover effect
  • 🧩 New component
  • 📝 Documentation improvement
  • 🐛 Bug fix in an existing submission
  • Other (describe below)

Submission Checklist

  • All changes are inside submissions/examples/floating-animation-515/
  • Includes demo.html — self-contained, opens in browser with no server
  • Includes style.css — raw CSS for the proposed feature
  • Includes README.md — what it does, how to use it, why it fits EaseMotion CSS
  • No changes to core/
  • No changes to components/
  • One feature per PR (no bundled unrelated changes)

Feature Description

What does this add?

A reusable floating animation utility that smoothly moves elements up and down while dynamically adjusting shadow depth.

How does a developer use it?

<div class="floating-element">
    Floating Content
</div>

Why does it fit EaseMotion CSS?

The effect provides a lightweight, reusable micro-interaction that enhances visual engagement without requiring custom keyframes. It aligns with EaseMotion CSS's animation-first philosophy and is suitable for cards, hero sections, feature highlights, CTA elements, and decorative UI components.


Demo

  • Demo added (demo.html works by opening directly in a browser)

Browser Testing

  • Chrome
  • Firefox
  • Edge
  • Safari (optional but appreciated)

Notes for Maintainer

  • Includes prefers-reduced-motion support for accessibility.
  • Hovering pauses the animation and highlights the element at its highest position.
  • All files are contained within submissions/examples/floating-animation-515/ as required by the contribution guidelines.

@SAPTARSHI-coder SAPTARSHI-coder added accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jun 2, 2026
@SAMJOD07-devz
Copy link
Copy Markdown
Contributor Author

@SAPTARSHI-coder Hey, can you merge this PR?

@SAPTARSHI-coder SAPTARSHI-coder merged commit e3e53c4 into SAPTARSHI-coder:main Jun 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers gssoc:approved Approved for GSSoC contributions GSSoC-26 Official GSSoC 2026 issue integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants